@import 'tool-kits';

body {
  display: flex;
  flex-direction: column;
}

nav {
  height: 3.5vh;
  display: flex;
  align-items: center;
  background-color: @color-blue;
  .logo {
    margin-left: 30px;
    vertical-align: middle;
    color: #fff;
  }
}

main {
  display: flex;
  flex-grow: 1;
}

.leftBar {
  width: 320px;
  height: 100%;
  .categoryTitle {
    padding: 1vh 30px;
  }
  .categorys {
    overflow-y: auto;
    .category {
      padding: 0.5vh 30px;
      &:hover {
        cursor: pointer;
        background-color: @color-light-gray;
      }
      &:active,
      &.active {
        color: @color-blue;
        background-color: @color-deep-gray;
      }
    }
  }
  background-color: @color-gray;
}

.center {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  .listIntoWapper {
    height: 5vh;
    display: flex;
    align-items: center;
    padding-left: 30px;
  }
  .newTask {
    font-size: @font-size-h4;
    display: flex;
    align-items: center;
    padding: 14px 10px;
    .addTask {
      padding: 14px 20px;
      height: 56px;
      width: 100%;
      border-radius: 10px;
      border: @color-deep-gray 1px solid;
      background-color: @color-gray;
      display: flex;
      align-items: center;
      gap: 10px;
      #newTaskName,
      #newTaskDate,
      #newTaskSubmit {
        line-height: 28px;
        font-size: 16px;
        border: 1px solid @color-gray;
        border-radius: 5px;
        &:hover,
        &:focus {
          border: 1px solid @color-blue;
        }
        transition: all 0.5s;
      }
      #newTaskName {
        flex-grow: 1;
      }
      #newTaskSubmit {
        padding: 0 10px;
        border: none;
        &:hover,
        &:focus {
          background-color: @color-blue;
          color: @color-light-gray;
          border: none;
          cursor: pointer;
        }
      }
      & > * {
        border: none;
        outline: none;
      }
    }
  }
  .taskItems {
    width: 100%;
    flex-grow: 1;
    padding: 0 10px;
    position: relative;
    .taskItem {
      padding: 0 20px;
      border-bottom: 2px @color-gray solid;
      height: 56px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      gap: 10px;
      .taskText,
      .deadline,
      .remove {
        line-height: 28px;
        font-size: 16px;
        border: 1px solid rgba(0, 0, 0, 0);
        border-radius: 5px;
        &:hover,
        &:focus {
          border: 1px solid @color-blue;
        }
        transition: all 0.5s;
      }
      .taskText {
        flex-grow: 1;
      }
      .remove {
        padding: 0 10px;
        line-height: 28px;
        font-size: 16px;
        border: none;
        background-color: #fff;
        &:hover,
        &:focus {
          background-color: @color-red;
          color: @color-light-gray;
          border: none;
          cursor: pointer;
          transition: all 0.5s;
        }
      }
      & > * {
        border: none;
        outline: none;
      }
    }
    .del-line {
      left: 20px;
      right: 20px;
      height: 0;
      border: 1px solid #000;
      position: absolute;
      display: none;
    }
    & .del {
      .del-line {
        display: block;
      }
    }
  }
}
